package com.tbq.game.service.http

import com.tbq.game.service.utils.L
import com.yanzhenjie.kalle.Response
import com.yanzhenjie.kalle.connect.Interceptor
import com.yanzhenjie.kalle.connect.http.Chain

class LoggerInterceptor:Interceptor {
    override fun intercept(chain: Chain?): Response {
        val request = chain!!.request()
        L.e("请求${request.method().name}：${request.url()}", "HTTP")
        return chain.proceed(request)
    }
}